import request from '@/utils/request'
import axios from 'axios'
import Vue from 'vue'

export const codes = (data) => {
  return request(`/sms/codes/${data}`)
}

export const login = (data) => {
  return request.post('/authorizations', data)
}

// 获取用户信息
export const user = () => {
  return request('/user')
}
